package com.guan.serviceorder.client;

import com.guan.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Date: 2023/4/24 17:15
 * @Author: 管奇安
 * @Description:
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {

    /**
     * @date: 2023/4/24 16:58
     * @author: 管奇安
     * @description: 远程调用查询用户信息 @PathVariable("id")必须带参数
     * @param: [id] 用户id
     * @return:
     * com.guan.commonutils.ordervo.UcenterMemberOrder
     * 为了方便调用端方便取值，返回一个对象。该对象是调用端和被调用端都可以引用，所以复制UcenterMember类
     * 到common_utils模块下。
     **/
    @PostMapping("getUserInfoOrder/{id}")
    public UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);

}
